//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS__CONTEXT_H__
#define __ELASTOS__CONTEXT_H__

EXTERN virtaddr_t InitThread0Stack(Thread *pThread);

EXTERN virtaddr_t InitSystemThreadStack(
        Thread *pThread, threadentry_t threadentry,
        threadroutine_t threadroutine, void *pvParameter);

EXTERN virtaddr_t InitThreadStack(
        Thread *pThread, threadroutine_t threadroutine, void *pvParameter);

EXTERN void SetThreadUserEntry(
        Thread *pThread, virtaddr_t vaUserStack, virtaddr_t vaUserEntry);

#endif //__ELASTOS__CONTEXT_H__
